package creational.factory.abstractfactory;

/**
 * @Description: 测试类
 * @Author: lxt
 * @CreateDate: 2019/11/1
 **/
public class AbstractFactoryTest {
    public static void main(String[] args) {
        Factory mysqlFactory = new MysqlFactory();
        String sql = mysqlFactory.createDialect().getCountRowsSql("hub", "", "hub_sys_menu");
        mysqlFactory.createPrinter().out(sql);

        Factory pgFactory = new PostgresFactory();
        String pgsql = pgFactory.createDialect().getCountRowsSql("", "public", "DIC_INFO");
        pgFactory.createPrinter().out(pgsql);
    }
}
